package serivce

import (
	"context"
	"petCombo-srv/dao"
	__ "petCombo-srv/proto"
)

// SayHello implements helloworld.GreeterServer
func (p *Pets) PetList(_ context.Context, in *__.PetListReq) (*__.PetListResp, error) {

	PetListService := dao.NewPetListService()
	List := PetListService.PetList(int(in.PetId))

	return &__.PetListResp{
		List: List,
	}, nil
}
